//
//  MyBtn.m
//  Qbutton
//
//  Created by CHENGXIANG QIU on 2018/6/14.
//  Copyright © 2018年 CHENGXIANG QIU. All rights reserved.
//

#import "Mybtn.h"

@implementation Mybtn

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        self.layer.borderColor = [UIColor grayColor].CGColor;
        self.layer.borderWidth = 1.0;
        self.layer.cornerRadius = 3.0;
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}
@end
